/*
 * @Author: your name
 * @Date: 2020-10-19 17:46:54
 * @LastEditTime: 2020-10-29 15:31:01
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /Project/node/routes/Food.js
 */
const express = require('express');
const router = express.Router();
const service = require('../services/OrderService');

// 录入商品
const vaildator = [
    
]
// 获取单个商品详情信息
router.post('/createOrder',vaildator, service.createOrder);
// 获取所有订单列表
router.post('/orderList',vaildator, service.OrderInfo);

// 模拟订单支付成功
router.post('/orderPayStatus',vaildator, service.OrderPayStatus);

// 商家确认接单
router.post('/confirmOrder',vaildator, service.confirmOrder);

// 骑手抢单
router.post('/robOrder',vaildator, service.robOrder);
// 骑手取到餐
router.post('/getOrderFood',vaildator, service.getOrderFood);

// 骑手确认已完成配送
router.post('/finishOrder',vaildator, service.finishOrder);

module.exports = router;